package com.llb666.shop.items.domain.entity.bo;

import com.llb666.shop.items.domain.entity.Items;
import com.llb666.shop.items.domain.entity.ItemsImg;
import com.llb666.shop.items.domain.entity.ItemsSpec;
import lombok.Data;

import java.util.List;

/**
 * @author llb666
 */
@Data
public class OrderItemsBo {

    private List<Items> itemsList;

    private List<ItemsSpec> itemsSpecList;

    private List<ItemsImg> itemsImgList;

    public static OrderItemsBo cover(List<Items> itemsList, List<ItemsSpec> itemsSpecList, List<ItemsImg> itemsImgList) {
        OrderItemsBo bo = new OrderItemsBo();
        bo.setItemsList(itemsList);
        bo.setItemsSpecList(itemsSpecList);
        bo.setItemsImgList(itemsImgList);
        return bo;
    }
}
